package elcs.reply.model;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import elcs.board.model.BoardVO;

@Service
public class ReplyServiceImpl implements ReplyService {
	@Resource(name="replyDaoImpl")
	private ReplyDao replyDao;

	@Override
	public void writeReply(ReplyVO rvo) throws Exception {
		this.replyDao.updateStep(rvo);
		this.replyDao.writeReply(rvo);
		
	}

	@Override
	public List<ReplyVO> replyList(BoardVO bvo) throws Exception {
		// TODO Auto-generated method stub
		return this.replyDao.replyList(bvo);
	}

	@Override
	public void replyAnswerWrtie(ReplyVO rvo) throws Exception {
		this.replyDao.updateStep(rvo);
		this.replyDao.replyAnswerWrite(rvo);
		
	}

	@Override
	public ReplyVO replyInfo(ReplyVO rvo) throws Exception {
		// TODO Auto-generated method stub
		return this.replyDao.replyInfo(rvo);
	}

}
